package com.lwlean.audit.service.service.impl;

import com.lwlean.audit.domain.Audit;
import com.lwlean.audit.mapper.AuditMapper;
import com.lwlean.audit.service.AuditService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by lean on 16-11-6.
 */
@Service
@Transactional(readOnly = false)
public class AuditServiceImpl implements AuditService {

    private final Logger logger = Logger.getLogger(this.getClass());

    @Autowired
    private  AuditMapper auditMapper;

    @Override
    @Transactional(readOnly = true)
    public Audit getAuditById(Long id) {
        return auditMapper.getAuditById(id);
    }

}
